package com.xczl.demo.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

import com.xczl.demo.dao.UserLevelDao;
import com.xczl.demo.domain.UserLevel;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:root-context.xml" })
public class UserLevelTestCase {

	@Autowired
	private UserLevelDao userLevelDao;

	@Test
	public void insert() {
		UserLevel userLevel = new UserLevel();
		userLevel.setName("VIP会员");
		userLevel.setLevel(5);
		userLevelDao.insertUserLevel(userLevel);
	}

}
